Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: expose option to skip destructive code actions #69

Merged
merged 1 commit into from
Aug 17, 2022

Conversation

simonhaenisch
Copy link
Owner

Adds a new plugin option organizeImportsSkipDestructiveCodeActions that if set, runs organizeImports with the skipDestructiveCodeActions option enabled. This prevents unused imports from being removed.

Closes #37.

Adds a new plugin option `organizeImportsSkipDestructiveCodeActions` that if set, runs `organizeImports` with the `skipDestructiveCodeActions` option enabled. This prevents unused imports from being removed.

Closes #37.
@simonhaenisch simonhaenisch merged commit dc1f8b8 into master Aug 17, 2022
@simonhaenisch simonhaenisch deleted the skip-destructive-code-actions branch August 17, 2022 06:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use the source.sortImports code action instead to avoid deleting "unused" imports
1 participant